
<?php if(variable_get('is_start_full_page')): ?>
<?php print $page; ?>
<?php  variable_set('is_start_full_page', FALSE); ?>
<?php else: ?>
<?php
/**
 * @file
 * Returns the HTML for the basic html structure of a single Drupal page.
 *
 * Complete documentation for this file is available online.
 * @see https://drupal.org/node/1728208
 */

// by Kelvin
$frontend_dev_mode = false;
?><!DOCTYPE html>

<!--[if IEMobile 7]><html class="iem7" <?php print $html_attributes; ?>><![endif]-->
<!--[if lte IE 6]><html class="lt-ie9 lt-ie8 lt-ie7" <?php print $html_attributes; ?>><![endif]-->
<!--[if (IE 7)&(!IEMobile)]><html class="lt-ie9 lt-ie8" <?php print $html_attributes; ?>><![endif]-->
<!--[if IE 8]><html class="lt-ie9" <?php print $html_attributes; ?>><![endif]-->
<!--[if (gte IE 9)|(gt IEMobile 7)]><!--><html <?php print $html_attributes . $rdf_namespaces; ?>><!--<![endif]-->
    

    
<head>
	<?php print $head; ?>
	<title><?php print $head_title; ?></title>

	<?php if ($default_mobile_metatags): ?>
	<meta name="MobileOptimized" content="width">
	<meta name="HandheldFriendly" content="true">
	<meta name="viewport" content="width=device-width">
	<?php endif; ?>
	<meta http-equiv="cleartype" content="on">
    <link href="https://fonts.googleapis.com/css?family=Lato:400,700" rel="stylesheet">
	<?php print $styles; ?>
    <?php if ($frontend_dev_mode): ?>
    <link rel="stylesheet" href="/<?php echo path_to_theme(); ?>/css/app.css">
    <?php endif; ?>
    <?php print $scripts; ?>
    <?php if ($frontend_dev_mode): ?>
    <script type="text/javascript" src="/<?php echo path_to_theme(); ?>/js/app.js"></script>
    <?php endif; ?>

    <?php if ($add_html5_shim and !$add_respond_js): ?>
    <!--[if lt IE 9]>
<script src="<?php print $base_path . $path_to_zen; ?>/js/html5.js"></script>
<![endif]-->
    <?php elseif ($add_html5_shim and $add_respond_js): ?>
    <!--[if lt IE 9]>
<script src="<?php print $base_path . $path_to_zen; ?>/js/html5-respond.js"></script>
<![endif]-->
    <?php elseif ($add_respond_js): ?>
    <!--[if lt IE 9]>
<script src="<?php print $base_path . $path_to_zen; ?>/js/respond.js"></script>
<![endif]-->
    <?php endif; ?>

</head>
<body class="desktop <?php print $classes; ?>" <?php print $attributes;?>>
	<?php if ($skip_link_text && $skip_link_anchor): ?>
	<p id="skip-link">
		<a href="#<?php print $skip_link_anchor; ?>" class="element-invisible element-focusable"><?php print $skip_link_text; ?></a>
	</p>
	<?php endif; ?>

	<?php print $page_top; ?>

	<?php print $page; ?>

	<?php print $page_bottom; ?>

<script type='text/javascript'>
  var googletag = googletag || {};
  googletag.cmd = googletag.cmd || [];
  (function() {
    var gads = document.createElement('script');
    gads.async = true;
    gads.type = 'text/javascript';
    var useSSL = 'https:' == document.location.protocol;
    gads.src = (useSSL ? 'https:' : 'http:') +
      '//www.googletagservices.com/tag/js/gpt.js';
    var node = document.getElementsByTagName('script')[0];
    node.parentNode.insertBefore(gads, node);
  })();
</script>

</head>
<script defer src="/<?php echo path_to_theme(); ?>/js/ng.js"></script>
</body>
</html>
<?php endif; ?>